package chapter1023;

public class Test {
    public static void main(String[] args) {
        PC pc = new PC("cpu1","ram1","disk1","user1");
        NotePad notePad = new NotePad("cpu2","ram2","disk2","微软雅黑");

        System.out.println(pc.getDetails());
        System.out.println(notePad.getDetails());

        //pc.cpu = "cpu3"; //error
        pc.setCpu("cpu2");
        System.out.println(pc.getDetails());


    }
}
